export interface GetDetailRequestData {
  id: number
}

export interface GetListData {
  /** 当前页码 */
  pageNum: number
  /** 查询条数 */
  pageSize: number
  pid?: number
}

export interface createRequestData {
  pid: number | undefined
  title: string
  remark: string
  enable: number | undefined
}

export interface updateRequestData {
  id: number | undefined
  pid: number | undefined
  title: string
  remark: string
  enable: number | undefined
}

export interface deleteRequestData {
  id: number
}

// 返回值
export type GetTableResponseData = ApiResponseData<{
  data: any
  total: number
}>
export type GetDetailResponseData = ApiResponseData<{
  create_time: string
  id: string
  phone: string
  roles: string
  status: boolean
  username: string
}>
